{template modoer_header}
<div id="body" style="margin-top:10px;">
    <div class="link_path">
        <a href="{url modoer/index}">{lang global_index}</a>
        &raquo;
        <a href="{url group/index}">小组</a>
        &raquo;
        {print implode(' &raquo; ', $urlpath)}
    </div>
    <div class="discussion_left">
        <div class="mainrail" style="padding-bottom:10px;">
            <div style="background:#f5f5f5; padding:5px;">
                <label><input id="auth" type="checkbox" style="vertical-align:middle;" />官方小组</label>
                <label><input id="finer" type="checkbox" style="vertical-align:middle;" />推荐小组</label>
                <label><input id="area" type="checkbox" style="vertical-align:middle;" />地方小组</label>
            </div>
            {if $total > 0}
                {template group_part_list}
            {else}
                <div class="messageborder"style="margin-top:30px;">暂无信息。</div>
            {/if}
        </div>
        {if $multipage}<div class="multipage">$multipage</div>{/if}
    </div>
    <div class="discussion_right">
        <div class="mainrail rail-border-4">
            <h3 class="rail-h-3 rail-h-bm-4">分类标签</h3>
            <!--{get:group val=category()}-->
            <ul class="side_categorylist">
                <h5><a {if $tag==$val[name]}class="selected"{/if}href="{url group/list/tag/$val[name]}">$val[name]</a></h5>
                <!--{get:group vval=category_tag(catid/$val[catid])}-->
                <li><a {if $tag==$vval}class="selected"{/if}href="{url group/list/tag/$vval}">$vval</a></li>
                <!--{/get}-->
            </ul>
            <div class="clear"></div>
            <!--{/get}-->
        </div>
    </div>
    <div class="clear"></div>
</div>
<script type="text/javascript">
$(function() {
    {if $auth}$('#auth').attr('checked',true);{/if}
    {if $finer}$('#finer').attr('checked',true);{/if}
    {if $area}$('#area').attr('checked',true);{/if}
    $('#auth').click(function(){group_filter()});
    $('#finer').click(function(){group_filter()});
    $('#area').click(function(){group_filter()});
})
function group_filter(){
    var url = "{url group/list/tag/$tag/pr/__PR__}";
    var auth = $('#auth').attr('checked');
    var finer = $('#finer').attr('checked');
    var area = $('#area').attr('checked');
    var pr='';
    pr = auth ? '1' : '0';
    pr = finer ? (pr+'_1') : (pr+'_0');
    pr = area ? (pr+'_{$_CITY[aid]}') : (pr+'_0');
    if(!auth&&!finer&&!area) {
        url = url.replace('-pr-__PR__','');
        url = url.replace('&pr=__PR__','');
    } else {
        url = url.replace('__PR__',pr);
    }
    jslocation(url);
}
</script>
<!--{eval footer();}-->